/**
* @addtogroup jtc_msg_808_ec2_common
* jtc_msg_808_ec2_common
* @{
*/
/**
* @file         jtc_msg_808_ec2_common.h
* @brief        鸿泉EC2云网通用信息定义
* @note
* @author       Akee(shengkun.you@hopechart.com,尤胜坤)
*
* @par          修改日志
* <table>
* <tr><th>Date        <th>Version               <th>Author                                    <th>Description
* <tr><td>2023-04-10  <td>1.0                   <td>Akee(ysk@hopechart.com,尤胜坤)            <td>创建初始版本
* @copyright    杭州鸿泉物联网技术股份有限公司
*/
#ifndef _JTC_MSG_808_EC2_COMMON_H_
#define _JTC_MSG_808_EC2_COMMON_H_
#ifdef __cplusplus
extern "C" {
#endif

/**
 * Http下载相关
 ******************************************************************************
 */

/**
 *  Http升级方式 
 */
enum TJtMsg808Ec2HttpUpgradeTypeEnumTag
{
    kJtMsg808Ec2HttpUpgradeTypeStartup  = 0,   ///< 开机升级
    kJtMsg808Ec2HttpUpgradeTypeRightNow = 1,   ///< 立即升级
    kJtMsg808Ec2HttpUpgradeTypeSilent   = 2,   ///< 静默升级
    
};
typedef enum TJtMsg808Ec2HttpUpgradeTypeEnumTag TJtMsg808Ec2HttpUpgradeTypeEnum;


/**
 *  Http升级应答状态
 */
enum TJtMsg808Ec2HttpUpgradeRespStateEnumTag
{
    kJtMsg808Ec2HttpUpgradeRespStateOk                  = 0,   ///< 成功
    kJtMsg808Ec2HttpUpgradeRespStateAddressInvalid      = 1,   ///< 下载地址无效
    kJtMsg808Ec2HttpUpgradeRespStateFileSizeInvalid     = 2,   ///< 文件大小无效
    kJtMsg808Ec2HttpUpgradeRespStateHmiInvalid          = 3,   ///< 升级方式不支持
    kJtMsg808Ec2HttpUpgradeRespStateTargetInvalid       = 4,   ///< 升级类别不支持
    kJtMsg808Ec2HttpUpgradeRespStateCancelFailed        = 5,   ///< 取消任务失败
    kJtMsg808Ec2HttpUpgradeRespStateBusy                = 6,   ///< 终端已有任务在处理
    kJtMsg808Ec2HttpUpgradeRespStateMsgFormatInvalid    = 7,   ///< 消息体格式有误
    
};
typedef enum TJtMsg808Ec2HttpUpgradeRespStateEnumTag TJtMsg808Ec2HttpUpgradeRespStateEnum;

/**
 *  Http升级状态
 */
enum TJtMsg808Ec2HttpStateEnumTag
{
    kJtMsg808Ec2HttpStateDownloading    = 0,    ///< 下载中
    kJtMsg808Ec2HttpStateDownloadFailed = 1,    ///< 下载失败
    kJtMsg808Ec2HttpStateSumCheckOk     = 2,    ///< 校验成功
    kJtMsg808Ec2HttpStateSumCheckFailed = 3,    ///< 校验失败
    kJtMsg808Ec2HttpStateUpgradeOk      = 4,    ///< 升级成功
    kJtMsg808Ec2HttpStateUpgradeFailed  = 5,    ///< 升级失败
    kJtMsg808Ec2HttpStateTransOk        = 6,    ///< 传输成功
    kJtMsg808Ec2HttpStateTransFail      = 7,    ///< 传输失败
    kJtMsg808Ec2HttpStateRollbackOk     = 8,    ///< 回滚成功
    
};
typedef enum TJtMsg808Ec2HttpStateEnumTag TJtMsg808Ec2HttpStateEnum;

/**
 * Http状态应答结果
 */
enum TJtMsg808Ec2HttpStateRespResultEnumTag
{
    kJtMsg808Ec2HttpStateRespResultOk               = 0,
    kJtMsg808Ec2HttpStateRespResultTaskIdNotExist   = 1,
    kJtMsg808Ec2HttpStateRespResultStateError       = 2,
    kJtMsg808Ec2HttpStateRespResultNotSupport       = 3,
    kJtMsg808Ec2HttpStateRespResultBusy             = 4,
    kJtMsg808Ec2HttpStateRespResultMsgFormatInvalid = 5,

};
typedef enum TJtMsg808Ec2HttpStateRespResultEnumTag TJtMsg808Ec2HttpStateRespResultEnum;



#ifdef __cplusplus
} // extern "C" {
#endif
#endif
/**
 * @} 
 */
 
